using System;

namespace Mbs.ComponentModel.Container.Loader
{
    [Serializable]
    public abstract class LoaderAdapter : ILoader
    {
        protected IKernel Kernel { get; private set; }
        public void Init(IKernel kernel)
        {
            Kernel = kernel;
            if (Kernel != null)
                Init();
        }

        protected virtual void Init() { }
        public abstract void Load();
    }
}
